package com.example.demo.init;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

import com.example.demo.util.PropertiesUtil;

import lombok.extern.slf4j.Slf4j;

/**
 * @title:	InitProperty
 * @author:	许子文
 * @date:	2019年8月8日 
 * @descirption:
 */
@Slf4j
@Component
public class InitProperty implements InitializingBean{
	
	@Override
	public void afterPropertiesSet() throws Exception {
		// TODO Auto-generated method stub
		log.debug("初始化配置文件");
		PropertiesUtil.initProperty();
	}

}
